﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="admin_serviceupdate.aspx.cs" Inherits="Web.admin_serviceupdate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript" language="javascript">
        $(function() {
            initSideNav("nav-service", "admin_service.aspx");
            setParams();
        });
        function setParams() {
            uploader._options.params = { 'thumb': 'service' };
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>
                服务管理</h3>
            <ul class="content-box-tabs">
                <li><a href="admin_service.aspx">列表</a></li>
                <li><a href="admin_serviceadd.aspx" >添加</a></li>
                <li><a href="#" class="default-tab" >更新</a></li>
            </ul>
            <div class="clear">
            </div>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <!-- This is the target div. id must match the href of this div's tab -->
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
                    <ContentTemplate>
                        <div class="notification error png_bg" id="noticefail" runat="server">
                            <a href="#" class="close">
                                <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                    alt="close" /></a>
                            <div>
                                添加失败！请检查各个字段是否正确！如果多次失败，请联系技术！谢谢！
                            </div>
                        </div>
                        <div id="noticesuccess" runat="server">
                            <div class="notification success png_bg">
                                <a href="#" class="close">
                                    <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                        alt="close" /></a>
                                <div>
                                    添加成功！<a href="admin_service.aspx">返回列表</a>&nbsp;&nbsp;<a href="admin_serviceadd.aspx">继续添加</a>
                                </div>
                            </div>
                        </div>
                        <fieldset>
                            <asp:HiddenField ID="hfServiceID" runat="server" />
                            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                            <p>
                                <label>
                                    服务对象</label>
                                <asp:TextBox ID="txbName" runat="server" CssClass="text-input medium-input"></asp:TextBox>
                                <span class="input-notification success png_bg" id="noticeNameSame" runat="server">
                                </span>
                            </p>
                            <p>
                                <label>
                                    服务类型</label>
                                <asp:DropDownList ID="ddlCategory" runat="server">
                                </asp:DropDownList>
                            </p>
                            <p>
                                <label>
                                    服务等级</label>
                                <asp:DropDownList ID="ddlLevel" runat="server">
                                </asp:DropDownList>
                            </p>
                            <p>
                                <label>
                                    服务图片</label>
                            </p>
                            </p> <span style="height: 140px;">
                                <p>
                                    <a id="openerupload" class="shortcut-button" href="#uploadimage"><span>
                                        <img alt="icon" src="resources/images/icons/image_add_48.png" /><br />
                                        上传图片 </span></a>
                                    <asp:Image ID="imgPicUrl" runat="server" />
                                    <asp:HiddenField ID="hfPicUrl" runat="server" Visible="true" />
                                </p>
                                <p>
                                    <label>
                                        客户链接</label>
                                    <asp:TextBox ID="txbURL" runat="server" CssClass="text-input medium-input"></asp:TextBox>
                                    <span class="input-notification attention png_bg" id="noticeUrlType" runat="server">
                                        请以http:// 开头，例：http://www.chingedesign.com </span>
                                </p>
                                <p>
                                    <asp:Button ID="btnSubmit" runat="server" CssClass="button" OnClick="btnSubmit_OnClick"
                                        Text="提交" />
                                    <input class="button" type="Reset" value="取消" />
                                </p>
                                <p>
                                </p>
                            </span>
                        </fieldset>
                        <div class="clear">
                        </div>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="txbURL" EventName="TextChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                <div class="" id="uploadimage" style="display: none;">
                    请选择缩略图进行上传，大小为188x120，或者保持此比例！<br />
                    <br />
                    <div id="btnajaxupload" class="uploadbtnclass">
                    上传
                    </div>
                    <%--<button id="btnajaxupload" value="upload">
                        upload</button>--%>
                    <button id="btnDeleteOldImage" onclick="deletePreImage();"  class="deletebtnclass">
                        删除</button>
                </div>
                <!-- End .clear -->
            </div>
            <!-- End #tab1 -->
        </div>
        <!-- End .content-box-content -->
    </div>
</asp:Content>
